home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ssssccccssssiiii____iiiinnnnffffoooo((((DDDD3333XXXX)))) ssssccccssssiiii____iiiinnnnffffoooo((((DDDD3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- scsi_info - get information about a SCSI device
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ttttyyyyppppeeeessss....hhhh>>>>
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ssssccccssssiiii....hhhh>>>>
-
- ssssttttrrrruuuucccctttt ssssccccssssiiii____ttttaaaarrrrggggeeeetttt____iiiinnnnffffoooo ****
- ((((****ssssccccssssiiii____iiiinnnnffffoooo))))((((vvvveeeerrrrtttteeeexxxx____hhhhddddllll____tttt _l_u_n__v_h_d_l))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The host adapter _s_c_s_i__i_n_f_o function issues an Inquiry command to the
- device corresponding to _l_u_n__v_h_d_l, returning a pointer to a
- _s_c_s_i__t_a_r_g_e_t__i_n_f_o structure, which contains at least the following fields:
-
- u_char *si_inq; /* inquiry data */
- u_char *si_sense; /* sense data from last request sense */
- u_char si_maxq; /* maximum queue depth for driver */
- u_char si_qdepth; /* max queue depth so far */
- u_char si_qlimit:1; /* boolean "max queue depth reached"? */
- uint si_ha_status; /* SRH_* status bits, if supported */
-
-
- There is no kernel object called scsi_info; rather, there is a pointer to
- each host adapter's scsi_info function in the sci_info field of the
- scsi_ctlr_info structure, which is attached to the vertex corresponding
- to the host adapter.
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- If the given device does not exist, or there is an error getting the
- data, NULL is returned.
-
- NNNNOOOOTTTTEEEESSSS
- _s_c_s_i__i_n_f_o is stored as a function pointer in the information hanging off
- the vertex handle corresponding to the host adapter in the hwgraph.
- Given a _l_u_n__v_h_d_l (vertex handle of the device) the scsi_info function can
- be called as follows:
-
- scsi_lun_info_t *scsi_lun_info;
- scsi_target_info_t *scsi_info;
- ...
- scsi_lun_info = scsi_lun_info_get(lun_vhdl);
- scsi_info = (*(SCI_INQ(
- STI_CTLR_INFO(
- SLI_TARG_INFO(scsi_lun_info)))))(lun_vhdl);
-
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- comments in /usr/include/sys/scsi.h, hwgraph.intro(D4X), scsi_alloc(D3X),
- scsi_command(D3X), scsi_free(D3X), scsi_ioctl(D3X), scsi_abort(D3X), SCSI
- chapter of the IRIX Device Driver Programmer's Guide
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-